package cn.wl.basic.service;

import cn.wl.PageList;
import cn.wl.basic.query.BaseQuery;

import java.util.List;

public interface IBaseService<T> {
    //查询所有
    List<T> queryAll();
    //根据id查询
    T queryOne(Long id);
    //增加
    void save(T t);
    //修改
    void update(T t);
    //删除
    void delete(Long id);
    //分页方法
    PageList queryPage(BaseQuery baseQuery);

}
